|
Server : LiteSpeed System : Linux host 5.15.0-161-generic #171-Ubuntu SMP Sat Oct 11 08:17:01 UTC 2025 x86_64 User : idnco5810 ( 1093) PHP Version : 8.2.29 Disable Function : NONE Directory : /proc/thread-self/root/usr/share/bash-completion/completions/ |
Upload File : |
# Linux insmod(8) completion -*- shell-script -*-
_insmod()
{
local cur prev words cword
_init_completion || return
# do filename completion for first argument
if ((cword == 1)); then
_filedir '@(?(k)o?(.[gx]z))'
else # do module parameter completion
COMPREPLY=($(compgen -W "$(PATH="$PATH:/sbin" modinfo \
-p ${words[1]} 2>/dev/null | cut -d: -f1)" -- "$cur"))
fi
} &&
complete -F _insmod insmod insmod.static
# ex: filetype=sh